import { http } from '@/utils/http'
import type { GetRegistrationResult, GetRegInfoResult } from '@/types/registration'

export const getRegistrationByPage = (data: { page: number; length: number }) => {
  return http<GetRegistrationResult>({
    method: 'POST',
    url: '/registration/searchRegistrationByPage',
    data,
  })
}

export const getRegistrationInfo = (data: { id: number }) => {
  return http<GetRegInfoResult>({
    method: 'POST',
    url: '/registration/searchRegistrationInfo',
    data,
  })
}
